﻿
using UnityEngine;

public class CoroutineProvider : MonoBehaviour
{
    private static CoroutineProvider instance = null;

    public static CoroutineProvider Instance
    {
        get
        {
            if (instance == null)
            {
                GameObject go = new GameObject("CoroutineProvider");
                instance = go.AddComponent<CoroutineProvider>();
                DontDestroyOnLoad(instance);
            }
            return instance;
        }
    }
}
